<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>超市进销系统</title> 
<style>
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 200px;
    background-color: #f1f1f1;
    position: fixed;
    height: 100%;
    overflow: auto;
}
 
li a {
    display: block;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
}
li a.active {
    background-color: :#808080;
	color: white;
}
/* 鼠标移动到选项上修改背景颜色 */
li a:hover {
    background-color: #555;
    color: white;
}

table,th,td
{
	border: 1px solid black;
	font-size: 18px;
	margin: 3px;
	padding: 3px;
	font-weight: normal;
}
</style>
</head>

<body>
<ul>
	<li><a href="/Market_01/touserinformation">个人信息</a></li>
	<li><a href="/Market_01/togoodsinformation">商品信息</a></li>
	<li><a href="/Market_01/topurchaseinformation" class="active">采购记录</a></li>
</ul>
<div style="margin-left:25%;padding:1px 16px;height:1000px;">
<h2>你好，采购信息如下</h2>
  <table>
		<tr>
			<th>采购单号</th>
			<th>员工编号</th>
			<th>采购数量</th>
			<th>采购总价</th>
			<th>采购时间</th>
			<th>备注</th>
			<th></th>
		</tr>
			<c:forEach items="${purchaselist}" var="purchase">
		<tr>
			<td>${purchase.pno}</td>
			<td>${purchase.eno}</td>
			<td>${purchase.pquantity}</td>
			<td>${purchase.psunprice}</td>
			<td>${purchase.ptime}</td>
			<td>${purchase.ptips}</td>
			<td><a href="/Market_01/details/${purchase.pno}">详情</a>
			</td>
		</tr>
		</c:forEach>
	</table>
</div>
</body>
</html>